<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 7.输出1到100的数字，8个数字一行，如果遇到个位是3或是3的倍数的不输出。例如:
        // 1 2 4 5 7 8 10 11
        // 17 19 20 22 25 26 28 29
        var count = 0;
        for (var i = 1; i <= 100; i++) {
            if (i % 10 != 3 && i % 3 != 0) {
                document.write(i + ' ');
                count++;
                if (count % 8 == 0) {
                    document.write('<br>');
                }
            }
        }
    </script>
</body>

</html>